<?php 
	session_start();	 
?>
<html>
<head>
<link href="../../css/bootstrap.css" rel="stylesheet">
<link href="../../css/tablas.css" rel="stylesheet">
<style>
	body{padding-top: 50px;}
	html { height: 50% }
	
	</style>
	
</head>
<body background="../../img/tileable_wood_texture.png">
	<div class="container">
	<div class="masthead">
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container">
				
          			<ul class="nav">
						<li class="brand"><img src="../../img/pXs3Tggtext.png" /></li>
              			<li><a href="../../Administrador/userAdmin.php"><b>Inicio</b></a></li>
            		</ul>
					<ul class="nav pull-right">
		        		<li class="active"><a href=""><?php echo $_SESSION["nombre"]." ".$_SESSION["apaterno"]." ".$_SESSION["amaterno"]; ?></a></li>
						<li><a href="../../admin/logout.php"><b>Cerrar Sesion</b></a></li>
					</ul>					
						
          		</div><!--/.nav-collapse -->
        	</div>
      	</div>
    </div>
	
<div class="container">
<div style="font-size: 18px"><b>LISTANDO REGISTROS</b></div><br>
<a class="btn btn-inverse" href="index.php?Controlador=nuevo">
Nuevo registro <i class="icon-user icon-white"></i></a>
<table class="table table-striped">
<tr>
<td>
Id
</td>
<td>
login
</td>
<td>
Password
</td>
<td>
Nombre
</td>
<td>
ApellidoPaterno
</td>
<td>
ApellidoMaterno
</td>
<td>
Mail
</td>
<td>
Nivel
</td>
</tr>
</div>
    <?php
	if(@$datos)
	foreach ($datos as $key => $row)
	{
		?>
        <tr>
        <td>
        <?php echo  $row['Id'] ?>
        </td>
        <td>
        <?php echo  $row['login'] ?>
        </td>
        <td>
        <?php echo  $row['password'] ?>
        </td>
        <td>
        <?php echo  $row['nombre'] ?>
        </td>
        <td>
		<?php echo  $row['APaterno'] ?>
        </td>
        <td>
		<?php echo  $row['Amaterno'] ?>
        </td>
        <td>
		<?php echo  $row['mail'] ?>
        </td>
        <td>
		<?php echo  $row['nivel'] ?>
        </td>
        <td>
        <a href="index.php?Controlador=Borrar&ID=<?php echo $row['Id']?> ">Borrar <i class="icon-remove-sign"></i></a>
        </td>
        <td>
        <a href="index.php?Controlador=Editar&ID=<?php echo $row['Id']?> ">Editar <i class="icon-edit"></i></a>
        </td>
        </tr>
        
       <?php }
	   ?>
        </table>
	</div>
</body>
</html>